home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Garbo
/
Garbo.cdr
/
mac
/
hypercrd
/
hc1_2_x
/
inptmthd.sit
/
Input Methods
/
card_10471.txt
< prev
next >
Wrap
Text File
|
1989-11-24
|
2KB
|
95 lines
-- card: 10471 from stack: in
-- bmap block id: 10724
-- flags: 0000
-- background id: 2696
-- name: Examples
----- HyperTalk script -----
-- Update the entries in the index field.
on update
lock screen
set the cursor to busy
put empty into list
push card
go next
repeat until the short name of this card is "Variations"
set the cursor to busy
get the short name of this card
if it Γëá last line of list then put it & return after list
go next
end repeat
pop card
put list into card field "Index"
set the height of card field "Index" to the number of lines in list * the textHeight of card field "Index" + 4
end update
-- part 1 (field)
-- low flags: 01
-- high flags: 0004
-- rect: left=132 top=75 right=271 bottom=299
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Index
----- HyperTalk script -----
-- Simulate menu selection in this field
on mouseDown
repeat while the mouse is down
if the mouseLoc is within the rect of me then
get mouseLine()
select line it of me
else select empty
end repeat
if the selection is not empty then go to card the selection
end mouseDown
-- Returns the number of the line the mouse is on in the target field
function mouseLine
put the mouseV - the top of the target into lineNum
if the style of the target = "scrolling"
then add the scroll of the target to lineNum
return lineNum div the textHeight of the target + 1
end mouseLine
-- part 2 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=11 top=290 right=308 bottom=494
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part contents for card part 1
----- text -----
Click Single Answer
Click Multiple Answers
Move Objects
Matching
Match Key Objects
Menus
Typing
Single Keypress
Comparison
Expressions
Sound Analysis
Miscellaneous
-- part contents for card part 2
----- text -----
Click on a topic, or click the forward arrow to start with the first example.